package com.ihrm.system.dao;


import com.ihrm.domain.system.Permission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Mapper
public interface PermissionDao {
    Integer insert(Permission permission);

    Integer update(Permission permission);

    Set<Permission> findAll(Permission permission);

    Permission findById(String id);

    @Delete("delete from pe_permission where id = #{id}")
    Integer del(String id);
}
